package com.zxy.ziems.server.foms.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 成员列表对应实体类
 */
@Data
public class DeptUserTree {


    private String id;

    /**
     * 成员名称
     */
    private String name;

    /**
     * 编号
     */
    private String workNo;

    /**
     * 类型
     */
    private String type;

    /**
     * 图片地址
     */
    private String img;

    private List<DeptUserTree> children = new ArrayList<>();

    public DeptUserTree() {
    }

    public DeptUserTree(String id, String name, String workNo, String img) {
        this.id = id;
        this.name = name;
        this.workNo = workNo;
        this.type = "2";
        this.img = img;
    }

    public DeptUserTree(String id, String name) {
        this.id = id;
        this.name = name;
        this.type = "1";
    }
}
